import { Button } from "antd";
import Paragraph from "antd/es/typography/Paragraph";
import Title from "antd/es/typography/Title";
import { Link, useNavigate } from "react-router-dom";
import { MANAGE_INDEX_PATHNAME } from "../router";
import styles from "./Home.module.scss";
// import "../_mock/index";
import { useEffect } from "react";
import axios from "axios";
import { getQuestionService } from "../service/question";
export default function Home() {
  const nav = useNavigate();
  useEffect(() => {
    getQuestionService("123").then((res) => {
      console.log(res);
    });
  }, []);
  return (
    <div className={styles.container}>
      <div className={styles.info}>
        <Title>问卷调查|在线投票</Title>
        <Paragraph>已累计创建问卷100份，发布问卷90份，收到答卷980份</Paragraph>
        <div>
          <Button type="primary" onClick={() => nav(MANAGE_INDEX_PATHNAME)}>
            开始使用
          </Button>
        </div>
      </div>
    </div>
  );
}
